<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:c="livcos.org/ns/cosmos"
  xmlns:job="livcos.org/ns/process/job"
  xmlns:html="http://www.w3.org/1999/xhtml"
  xmlns:f="livcos.org/ns/xslt/function"
  exclude-result-prefixes="c html f">
  
  <xsl:import href="/livcos.org/common/base.xsl"/>
	
	<xsl:param name="uri" select="'/Intro.html'"/>
	<xsl:param name="resolver" select="resolve-uri('resolver')"/>
	<xsl:param name="target" select="f:resolve-file-path('localhost/files/livcos.org/web')"/>
	
	<xsl:template match="/">
		<job:crawl uri="{$uri}" resolver="{$resolver}">
			<parse def="{resolve-uri('parse_html')}">
				<include pattern=".+\.html"/>
				<job:transform def="{resolve-uri('parse_html')}"/>
			</parse>
			<filter>
				<exclude uri="/livcos.org/web/admin"/>
				<exclude uri="/livcos.org/web/snapshot"/>
				<exclude uri="/livcos.org/Map/web/nav"/>
				<exclude uri="/livcos.org/web/map/map/Main"/>
				<exclude uri="/livcos.org/web/map/map/test"/>
				<exclude uri="/livcos.org/web/map/brunof.net"/>
				<exclude uri="/livcos.org/web/doc/brunof.net"/>
				<exclude uri="/res/"/>
				<exclude pattern=".+\.view"/>
				<exclude pattern=".+\.job"/>
			</filter>
			<filter level="20">
				<exclude pattern=".+\.html"/>
			</filter>
			<process>
				<job:transform def="{resolve-uri('process')}" result=".">
					<param name="target" value="{$target}"/>
				</job:transform>
			</process>
		</job:crawl>
		<job:transform def="/livcos.org/web/snapshot/protocol"/>
	</xsl:template>
  
</xsl:stylesheet>
